package cn.edu.scau.cmi.huangxiyan.singleton;

public class Chairman {
	private static Chairman instance = null;
	private String name = null;

	private Chairman(String name) {
		this.setName(name);
	}

	public static Chairman getInstance(String name) {
		if (instance == null && !(name == null)) {
			instance = new Chairman(name);
		}
		return instance;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
